import Layout from '@/layout/index'

const router = [
  {
    path: '/store',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'form',
        name: 'StoreInsert',
        component: () => import('@/views/basic/store/StoreForm'),
        meta: { title: '店铺-新增' },
        noCache: true,
        hidden: true
      },
      {
        path: 'form/:id',
        name: 'StoreUpdate',
        component: () => import('@/views/basic/store/StoreForm'),
        meta: { title: '店铺-编辑' },
        noCache: true,
        hidden: true
      }
    ]
  },
  {
    path: '/customer',
  component: Layout,
  hidden: true,
  children: [
    {
      path: 'view/:id',
      name: 'CustomerView',
      component: () => import('@/views/basic/customer/CustomerView'),
      meta: { title: '客户详情' },
      noCache: true,
      hidden: true
    },
    {
      path: 'customerProveView/:id',
      name: 'SupplierView',
      component: () => import('@/views/basic/customer/CustomerProveView'),
      meta: { title: '供应商查看' },
      noCache: true,
      hidden: true
    }
  ]
  },
  {
    path: '/supplier',
  component: Layout,
  hidden: true,
  children: [
    {
      path: 'view/:id',
      name: 'SupplierView',
      component: () => import('@/views/basic/supplier/SupplierView'),
      meta: { title: '供应商查看' },
      noCache: true,
      hidden: true
    }
  ]
  },
  {
    path: '/customerConsignee',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'view/:id',
        name: 'CustomerConsigneeView',
        component: () => import('@/views/basic/customerConsignee/CustomerConsigneeView'),
        meta: { title: '收货人明细' },
        noCache: true,
        hidden: true
      }
    ]
  }
]

export default router
